package org.gblog

class Post {

	static searchable = true
	
	static belongsTo = [user:ShiroUser] 
	static hasMany = [comments:Comment]

	String title
	String content
	Date dateCreated
	Date lastUpdated

	Integer pv = 0

    static constraints = {
    	title()
    	content()
    	dateCreated()
    	lastUpdated()
    	pv()
    }
}
